Integrand size = 10, antiderivative size = 16 \[ \int \sqrt {a \cot ^2(x)} \, dx=\sqrt {a \cot ^2(x)} \log (\sin (x)) \tan (x) \]
[Out]
Time = 0.02 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3739, 3556} \[ \int \sqrt {a \cot ^2(x)} \, dx=\tan (x) \sqrt {a \cot ^2(x)} \log (\sin (x)) \]
[In]
[Out]
Rule 3556
Rule 3739
Rubi steps \begin{align*} \text {integral}& = \left (\sqrt {a \cot ^2(x)} \tan (x)\right ) \int \cot (x) \, dx \\ & = \sqrt {a \cot ^2(x)} \log (\sin (x)) \tan (x) \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.25 \[ \int \sqrt {a \cot ^2(x)} \, dx=\sqrt {a \cot ^2(x)} (\log (\cos (x))+\log (\tan (x))) \tan (x) \]
[In]
[Out]
Time = 0.03 (sec) , antiderivative size = 22, normalized size of antiderivative = 1.38
method | result | size |
derivativedivides | \(-\frac {\sqrt {a \cot \left (x \right )^{2}}\, \ln \left (\cot \left (x \right )^{2}+1\right )}{2 \cot \left (x \right )}\) | \(22\) |
default | \(-\frac {\sqrt {a \cot \left (x \right )^{2}}\, \ln \left (\cot \left (x \right )^{2}+1\right )}{2 \cot \left (x \right )}\) | \(22\) |
risch | \(-\frac {\sqrt {-\frac {a \left ({\mathrm e}^{2 i x}+1\right )^{2}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right ) x}{{\mathrm e}^{2 i x}+1}-\frac {i \sqrt {-\frac {a \left ({\mathrm e}^{2 i x}+1\right )^{2}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right ) \ln \left ({\mathrm e}^{2 i x}-1\right )}{{\mathrm e}^{2 i x}+1}\) | \(94\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 43 vs. \(2 (14) = 28\).
Time = 0.26 (sec) , antiderivative size = 43, normalized size of antiderivative = 2.69 \[ \int \sqrt {a \cot ^2(x)} \, dx=\frac {\sqrt {-\frac {a \cos \left (2 \, x\right ) + a}{\cos \left (2 \, x\right ) - 1}} \log \left (-\frac {1}{2} \, \cos \left (2 \, x\right ) + \frac {1}{2}\right ) \sin \left (2 \, x\right )}{2 \, {\left (\cos \left (2 \, x\right ) + 1\right )}} \]
[In]
[Out]
\[ \int \sqrt {a \cot ^2(x)} \, dx=\int \sqrt {a \cot ^{2}{\left (x \right )}}\, dx \]
[In]
[Out]
none
Time = 0.42 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.25 \[ \int \sqrt {a \cot ^2(x)} \, dx=-\frac {1}{2} \, \sqrt {a} \log \left (\tan \left (x\right )^{2} + 1\right ) + \sqrt {a} \log \left (\tan \left (x\right )\right ) \]
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.25 \[ \int \sqrt {a \cot ^2(x)} \, dx=\frac {1}{2} \, \sqrt {a} \log \left (-\cos \left (x\right )^{2} + 1\right ) \mathrm {sgn}\left (\cos \left (x\right )\right ) \mathrm {sgn}\left (\sin \left (x\right )\right ) \]
[In]
[Out]
Timed out. \[ \int \sqrt {a \cot ^2(x)} \, dx=\int \sqrt {a\,{\mathrm {cot}\left (x\right )}^2} \,d x \]
[In]
[Out]